package com.example.aop;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class AopConfig {
    @Pointcut("execution(* com.example.service..*.*(..))")
    public void pointcut(){

    };
    @Before("pointcut()")
    public void before(){
        System.out.println("11111111111");
    }
    @After("pointcut()")
    public void after(){

    }
}
